Skip to content

Clean up string constraint generator class #4995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

romainbrenguier
Copy link
Contributor

The message field was unused, and the constraints field does not belong here since it is rather the return value of constraint generation than a field.
This was triggered by this discussion #4957 (comment)

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • [na] White-space or formatting changes outside the feature-related changed lines are in commits of their own.

This is not used by method of the class and doesn't belong here.
@romainbrenguier romainbrenguier force-pushed the clean-up/string-constraint-generator branch from e26991b to 1585bdf Compare August 10, 2019 20:38
The constraints should be a return value of the generator methods
rather than a field.
@romainbrenguier romainbrenguier force-pushed the clean-up/string-constraint-generator branch 2 times, most recently from a45bc9a to 8cf5b7a Compare August 10, 2019 21:53
@codecov-io
Copy link

Codecov Report

Merging #4995 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4995      +/-   ##
===========================================
- Coverage    69.44%   69.44%   -0.01%     
===========================================
  Files         1310     1310              
  Lines       108760   108761       +1     
===========================================
  Hits         75528    75528              
- Misses       33232    33233       +1
Impacted Files Coverage Δ
src/solvers/strings/string_constraint_generator.h 100% <ø> (ø) ⬆️
src/solvers/strings/string_dependencies.h 100% <ø> (ø) ⬆️
src/solvers/strings/string_refinement.cpp 88.28% <100%> (+0.04%) ⬆️
...lvers/strings/string_constraint_generator_main.cpp 80.31% <100%> (-0.52%) ⬇️
src/solvers/strings/string_dependencies.cpp 82.6% <100%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06ef36d...8cf5b7a. Read the comment docs.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️
This PR failed Diffblue compatibility checks (cbmc commit: 8cf5b7a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/122697509
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️
This PR failed Diffblue compatibility checks (cbmc commit: 3cc0c72).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/122783561
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.

@romainbrenguier romainbrenguier merged commit 30b874c into diffblue:develop Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants